package org.example.comment.feign;


import org.example.result.Result;
import org.example.vo.UserInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "UserService", path = "/user")
public interface UserFeign {


    /**
     * 获取当前用户信息
     * @return
     */
    @GetMapping("/getUserInfo")
    public Result<UserInfoVo> getUserInfo();



    /**
     * 更新当前用户信息
     * @param userInfoVo
     * @return
     */
    @PostMapping("/updateUserInfo")
    public Result updateUserInfo(@RequestBody UserInfoVo userInfoVo);




    /**
     * 更新当前用户手机号
     * @param phone
     * @return
     */
    @PostMapping("/updateUserPhone/{phone}")
    public Result updateUserPhone(@PathVariable String phone);

}
